# Copyright (c) 2022 Huawei Technologies Co.,Ltd.
#
# openGauss is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
# You may obtain a copy of Mulan PSL v2 at:
#
#          http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v2 for more details.

FEATURE_LIB = {
    'features': [[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0],
                 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]],
    'labels': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
               29],
    'weight_matrix': [
        [0.871, 0.0006, 0.003, 0.0041, 0.0025, 0.0044, 0.0052, 0.001, 0.0024, 0.0038, 0.0078, 0.0035, 0.0069, 0.0082,
         0.0061, 0.0035, 0.005, 0.0077, 0.0084, 0.001, 0.0068, 0.0065, 0.0029, 0.0072, 0.0017, 0.0033, 0.0083, 0.0036,
         0.0038],
        [0.0323, 0.1763, 0.0254, 0.0324, 0.0288, 0.0332, 0.0258, 0.0298, 0.0319, 0.0254, 0.0261, 0.0276, 0.0297, 0.0311,
         0.0253, 0.03, 0.0327, 0.0296, 0.0257, 0.0332, 0.0297, 0.0328, 0.0254, 0.0325, 0.0322, 0.0314, 0.0265, 0.0306,
         0.0266],
        [0.0155, 0.0205, 0.527, 0.0158, 0.0183, 0.0176, 0.0142, 0.0212, 0.014, 0.0158, 0.0144, 0.0148, 0.0203, 0.0183,
         0.0206, 0.014, 0.0154, 0.0149, 0.0148, 0.0191, 0.0125, 0.0189, 0.0155, 0.017, 0.0181, 0.0148, 0.0176, 0.018,
         0.0209],
        [0.0358, 0.0317, 0.0286, 0.0878, 0.0327, 0.033, 0.0369, 0.0345, 0.0282, 0.0287, 0.0287, 0.0359, 0.0321, 0.03,
         0.0313, 0.036, 0.0349, 0.0299, 0.034, 0.0309, 0.0363, 0.0295, 0.0342, 0.0309, 0.0319, 0.0367, 0.0334, 0.0325,
         0.0331],
        [0.0372, 0.0351, 0.0292, 0.0289, 0.0887, 0.0336, 0.0367, 0.0302, 0.0322, 0.0299, 0.0289, 0.0338, 0.0326, 0.0321,
         0.0343, 0.0322, 0.0332, 0.0356, 0.0353, 0.032, 0.0343, 0.0288, 0.0339, 0.0367, 0.0294, 0.0288, 0.0304, 0.0303,
         0.0355],
        [0.0271, 0.0279, 0.0262, 0.0226, 0.0221, 0.3612, 0.0221, 0.026, 0.0195, 0.0222, 0.0272, 0.0197, 0.0219, 0.024,
         0.0202, 0.0223, 0.0258, 0.0243, 0.0227, 0.0194, 0.0222, 0.0262, 0.02, 0.0194, 0.0222, 0.0203, 0.0227, 0.0211,
         0.0212],
        [0.0196, 0.0235, 0.0257, 0.0199, 0.0216, 0.0262, 0.3555, 0.0249, 0.027, 0.0277, 0.0201, 0.0205, 0.02, 0.0223,
         0.0199, 0.0254, 0.0224, 0.0236, 0.0214, 0.0262, 0.0217, 0.0245, 0.0201, 0.0214, 0.0244, 0.025, 0.0276, 0.0217,
         0.0201],
        [0.0251, 0.0264, 0.0215, 0.0227, 0.0205, 0.0194, 0.0222, 0.3463, 0.0226, 0.019, 0.0265, 0.0257, 0.0249, 0.0227,
         0.0229, 0.019, 0.0236, 0.0198, 0.0256, 0.021, 0.0197, 0.0266, 0.0262, 0.0257, 0.0235, 0.0259, 0.0271, 0.0254,
         0.0227],
        [0.0345, 0.0301, 0.0357, 0.0332, 0.0335, 0.036, 0.0339, 0.0283, 0.0863, 0.0282, 0.0341, 0.0322, 0.0339, 0.0348,
         0.0305, 0.0306, 0.0299, 0.0357, 0.0345, 0.0352, 0.0316, 0.0332, 0.0282, 0.0324, 0.0351, 0.0309, 0.0279, 0.034,
         0.0356],
        [0.0211, 0.0225, 0.0269, 0.0234, 0.026, 0.0201, 0.0266, 0.0264, 0.0244, 0.3428, 0.0252, 0.0259, 0.0248, 0.0196,
         0.0195, 0.0215, 0.0264, 0.0247, 0.0211, 0.0203, 0.0237, 0.0259, 0.0261, 0.0196, 0.0253, 0.0262, 0.0225, 0.0201,
         0.0213],
        [0.023, 0.0303, 0.0282, 0.0251, 0.0268, 0.0288, 0.0248, 0.0272, 0.0251, 0.0302, 0.2628, 0.0303, 0.0225, 0.0293,
         0.0245, 0.0239, 0.0237, 0.0245, 0.0269, 0.0255, 0.0264, 0.0247, 0.0272, 0.0268, 0.0249, 0.0274, 0.0263, 0.0225,
         0.0301],
        [0.0265, 0.029, 0.023, 0.0272, 0.0244, 0.0259, 0.0302, 0.0234, 0.0229, 0.0296, 0.0306, 0.2673, 0.0226, 0.0252,
         0.0238, 0.0288, 0.0309, 0.0245, 0.0249, 0.0287, 0.0289, 0.0273, 0.0271, 0.0267, 0.0252, 0.0233, 0.0246, 0.0244,
         0.0232],
        [0.0202, 0.0156, 0.0151, 0.0172, 0.0149, 0.0143, 0.0198, 0.0207, 0.0141, 0.0202, 0.014, 0.0168, 0.5247, 0.0133,
         0.0188, 0.0173, 0.0181, 0.0187, 0.0181, 0.0131, 0.0132, 0.0201, 0.0136, 0.0207, 0.0149, 0.0159, 0.0156, 0.021,
         0.0201],
        [0.025, 0.0234, 0.028, 0.0276, 0.0281, 0.0307, 0.0267, 0.0252, 0.0263, 0.0222, 0.0239, 0.0242, 0.0275, 0.2638,
         0.0247, 0.0285, 0.0297, 0.0263, 0.0281, 0.0252, 0.0282, 0.0307, 0.0264, 0.0222, 0.0254, 0.0284, 0.0261, 0.023,
         0.0244],
        [0.0136, 0.0209, 0.0193, 0.0161, 0.0197, 0.0142, 0.021, 0.0163, 0.0205, 0.0183, 0.0209, 0.0142, 0.0185, 0.0126,
         0.5221, 0.0189, 0.0141, 0.0187, 0.0171, 0.013, 0.0164, 0.021, 0.0148, 0.0133, 0.0194, 0.0174, 0.0162, 0.0181,
         0.0135],
        [0.0287, 0.0284, 0.0257, 0.0274, 0.0301, 0.0328, 0.0254, 0.0321, 0.0298, 0.0304, 0.0285, 0.0279, 0.0257, 0.0325,
         0.029, 0.1753, 0.0333, 0.0287, 0.0306, 0.0299, 0.0312, 0.0336, 0.0299, 0.0298, 0.0301, 0.0262, 0.0263, 0.0314,
         0.0295],
        [0.0323, 0.0307, 0.0296, 0.0301, 0.0285, 0.0327, 0.0328, 0.0268, 0.0293, 0.0323, 0.0305, 0.0269, 0.0305, 0.0263,
         0.0261, 0.0271, 0.1778, 0.0327, 0.0285, 0.0259, 0.0297, 0.0307, 0.0254, 0.0313, 0.0273, 0.0333, 0.0282, 0.0276,
         0.0292],
        [0.0273, 0.0345, 0.0326, 0.0344, 0.0277, 0.0332, 0.027, 0.0317, 0.0266, 0.0268, 0.0307, 0.029, 0.0332, 0.0343,
         0.033, 0.0298, 0.032, 0.1299, 0.0301, 0.0274, 0.0345, 0.0333, 0.0349, 0.0304, 0.0274, 0.0297, 0.0324, 0.0342,
         0.0318],
        [0.0314, 0.0347, 0.0296, 0.033, 0.0282, 0.0281, 0.0276, 0.0326, 0.035, 0.0353, 0.0334, 0.03, 0.0303, 0.0274,
         0.0283, 0.0308, 0.0333, 0.0344, 0.1317, 0.0271, 0.0324, 0.035, 0.028, 0.0329, 0.0272, 0.028, 0.0309, 0.0336,
         0.0299],
        [0.0229, 0.0222, 0.0228, 0.0224, 0.0249, 0.0291, 0.0229, 0.0212, 0.0273, 0.0258, 0.0257, 0.0236, 0.0236, 0.0228,
         0.0277, 0.0257, 0.0267, 0.0241, 0.0223, 0.3074, 0.0264, 0.0238, 0.0272, 0.0237, 0.0289, 0.0212, 0.026, 0.0247,
         0.0269],
        [0.0155, 0.0122, 0.0156, 0.0114, 0.0144, 0.0111, 0.0138, 0.0157, 0.0168, 0.0094, 0.0131, 0.0158, 0.0165, 0.0169,
         0.0175, 0.0129, 0.0148, 0.0117, 0.0156, 0.0132, 0.6059, 0.0111, 0.0108, 0.016, 0.0175, 0.0095, 0.0177, 0.0139,
         0.0139],
        [0.0163, 0.0154, 0.0185, 0.0163, 0.0198, 0.0157, 0.0185, 0.0167, 0.0185, 0.0188, 0.0148, 0.0169, 0.0178, 0.0207,
         0.0191, 0.0165, 0.0208, 0.0213, 0.0188, 0.0192, 0.0145, 0.4861, 0.0203, 0.0212, 0.0192, 0.0208, 0.0148, 0.0229,
         0.0198],
        [0.0332, 0.0291, 0.0323, 0.0322, 0.0291, 0.031, 0.034, 0.0337, 0.0361, 0.0361, 0.0298, 0.0351, 0.031, 0.0348,
         0.0331, 0.0308, 0.0336, 0.0302, 0.0306, 0.0302, 0.0338, 0.0333, 0.0894, 0.0302, 0.0325, 0.0305, 0.0359, 0.0363,
         0.0325],
        [0.0302, 0.026, 0.027, 0.0336, 0.0286, 0.0334, 0.0309, 0.0332, 0.0254, 0.0278, 0.0305, 0.0282, 0.0311, 0.0298,
         0.0251, 0.0319, 0.0307, 0.0285, 0.0252, 0.03, 0.0334, 0.0262, 0.0331, 0.1742, 0.031, 0.0287, 0.0303, 0.0258,
         0.0304],
        [0.0281, 0.0314, 0.0314, 0.0264, 0.0319, 0.029, 0.0312, 0.0321, 0.028, 0.0254, 0.0324, 0.0295, 0.0327, 0.0293,
         0.0334, 0.0279, 0.0327, 0.0325, 0.0265, 0.0255, 0.0294, 0.0307, 0.0286, 0.0279, 0.1753, 0.0285, 0.0293, 0.0277,
         0.0252],
        [0.021, 0.0192, 0.0175, 0.0193, 0.0191, 0.0226, 0.0215, 0.0214, 0.0204, 0.0213, 0.0228, 0.0228, 0.0235, 0.0219,
         0.0186, 0.0228, 0.0189, 0.0203, 0.0205, 0.0176, 0.0171, 0.0161, 0.0169, 0.0197, 0.0231, 0.4354, 0.0164, 0.0196,
         0.0227],
        [0.0219, 0.0262, 0.0236, 0.0217, 0.0218, 0.0271, 0.0196, 0.0247, 0.0269, 0.0207, 0.0227, 0.0227, 0.0247, 0.0192,
         0.027, 0.0247, 0.0268, 0.0234, 0.0269, 0.0228, 0.0198, 0.0243, 0.0197, 0.0201, 0.0266, 0.0219, 0.3461, 0.0262,
         0.0201],
        [0.0201, 0.0229, 0.0277, 0.0221, 0.026, 0.0238, 0.0206, 0.0262, 0.0259, 0.0246, 0.0197, 0.0277, 0.0199, 0.0196,
         0.026, 0.0259, 0.0223, 0.0242, 0.0238, 0.0213, 0.0192, 0.0227, 0.0196, 0.0211, 0.0201, 0.023, 0.0214, 0.3556,
         0.0271],
        [0.0312, 0.0364, 0.0341, 0.0299, 0.0328, 0.0331, 0.0301, 0.0312, 0.0319, 0.029, 0.0297, 0.0306, 0.037, 0.029,
         0.0285, 0.0364, 0.0328, 0.0332, 0.0328, 0.0299, 0.0304, 0.036, 0.0332, 0.0354, 0.0363, 0.0294, 0.0346, 0.0366,
         0.0884]]

}
